package org.qxj.music.controller;

import org.qxj.music.remote.RemoteClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 那日苏
 * @description TODO
 * @date 2023-10-31 10:48
 */
@RestController
@RequestMapping("remote")
public class RemoteController {

    @Resource
    private RemoteClient remoteClient;

    @GetMapping("test")
    public String test(@RequestParam(value = "start") long start, @RequestParam(value = "end") long end) {

        remoteClient.execute(start, end);
        return "ok";
    }
}
